package org.dromara.system.domain.bo;

import org.dromara.system.domain.GzhPushRecord;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 订阅推送记录业务对象 gzh_push_record
 *
 * @author Lion Li
 * @date 2024-06-28
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = GzhPushRecord.class, reverseConvertGenerate = false)
public class GzhPushRecordBo extends BaseEntity {

    /**
     * 关键字ID
     */
    @NotNull(message = "关键字ID不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 推送公众号用户ID
     */
    @NotNull(message = "推送公众号用户ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long userId;

    /**
     * 关键字
     */
    @NotBlank(message = "关键字不能为空", groups = { AddGroup.class, EditGroup.class })
    private String keyword;

    /**
     * 项目单位
     */
    @NotBlank(message = "项目单位不能为空", groups = { AddGroup.class, EditGroup.class })
    private String projectUnit;

    /**
     * 推送状态
     */
    @NotBlank(message = "推送状态不能为空", groups = { AddGroup.class, EditGroup.class })
    private String pushStatus;


}
